<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout :: head(~{ :: title}, ~{ :: link}, ~{ ::script},~{::style})">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>商户管理平台-角色修改</title>
    <link rel="stylesheet" th:href="@{/editor/css/wangEditor.min.css}"/>
    <link rel="stylesheet" th:href="@{/plugins/jquery-confirm/jquery-confirm.min.css}"/>
    <script th:src="@{/editor/js/wangEditor.min.js}"></script>
    <script th:src="@{/plugins/jquery-confirm/jquery-confirm.min.js}"></script>
    <style></style>
</head>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    var orgName =/*[[${orgName}]]*/;
    /*]]>*/


</script>
<body th:replace="layout::body(~{this::section})">
<section class="content-wrapper">
    <section class="content-header">
        <h1>
            角色
            <small>修改</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 商户管理平台</a></li>
            <li class="active">编辑角色</li>
        </ol>
    </section>
    <section class="content">
        <div th:if="${respMsg != ''}" class="alert alert-danger alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <h4><i class="icon fa fa-ban"></i> 操作提示</h4>
            <label th:text="${respMsg}"/>
        </div>
        <form method="post" th:action="@{/MpsRole/Update}" class="form" role="form">
            <input type="hidden" id="id" name="id" th:value="${R_I.id}"/>
            <input type="hidden" id="orgId" name="orgId" th:value="${R_I.orgId}"/>
            <div class="form-group">
                <label>角色名称：</label>
                <input type="text" id="name" name="name" class="form-control" th:value="${R_I.name}"/>
            </div>
            <div class="form-group">
                <label>角色备注：</label>
                <textarea id="descr" name="descr" class="form-control" th:text="${R_I.descr}"></textarea>
            </div>
            <div class="form-group">
                <label>角色状态</label>
                <input type="number" class="form-control" id="status" name="status" th:value="${R_I.status}"/>
            </div>
            <div class="form-group">
                <label>角色排序</label>
                <input type="number" class="form-control" id="sort" name="sort" th:value="${R_I.sort}"/>
            </div>
            <div class="row">
                <div class="col-md-5"></div>
                <div class="col-md-1">
                    <input type="submit" class="btn btn-block btn-primary" value="保存"/>
                </div>
                <div class="col-md-1">
                    <a class="btn btn-block btn-primary" th:href="@{/MpsRole/goMpsRoleList}">返回</a>
                </div>
                <div class="col-md-5"></div>
            </div>
        </form>
    </section>
</section>
</body>
</html>